<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>修改信息</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" >  
		   function subForm(){
		   		var tile = $("#tile").val();
		   		if(checkIsNull(tile)){
		   			alert("标题不能为空！");
		   			$("#tile").focus();
		   			return false;
		   		}
		   		$("#newsForm").submit();
		   }
		</script>
	</head>
	<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="content-box">
				<!-- Start Content Box -->
				<div class="content-box-header">
					<h3 style="cursor: s-resize;">
						添加图片
					</h3>
					<div class="clear"></div>
				</div>
				<!-- End .content-box-header -->
				<div style="display: block;" class="content-box-content">
					<form method="post" id="newsForm" name="newsForm" action="${ctx}/pages/tie/save.action" enctype="multipart/form-data">
					<input value="10" name="tie.type" id="type" type="hidden">
						<fieldset>	
							<p>
								<label>
								标题
								</label>
								<input id="tile" class="text-input small-input" name="tie.tile" type="text">

							</p>
							<p>
								<label>
									图片
								</label>
								<input id=images class="text-input small-input"
									name="myFile" type="file" />
							</p>											
							<p>
								<input class="button" value="提交" onclick="subForm();"  type="button">
								<input class="button" value="返回" onclick="history.back();"  type="button">
							</p>
						</fieldset>
						<div class="clear"></div>
						<!-- End .clear -->
					</form>
				</div>
			</div>
		</div>
		</div>
	</body>
</html>
